package com.distribution.system.service.impl;

import com.distribution.system.domain.bo.KuaidialAreas;
import com.distribution.system.domain.bo.KuaidialAreasJoin;
import com.distribution.system.domain.bo.ZoningAreas;
import com.distribution.system.mapper.CmccDaCodeMapper;
import com.distribution.system.service.CmccDaCodeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Liping Huo
 * @date 2023/5/23 20:44
 */
@Service
public class CmccDaCodeServiceImpl implements CmccDaCodeService {

    @Resource
    CmccDaCodeMapper cmccDaCodeMapper;

    @Override
    public List<ZoningAreas> getProvince() {
        return cmccDaCodeMapper.getProvince();
    }

    @Override
    public List<ZoningAreas> getCity(String province) {
        return cmccDaCodeMapper.getCity(province);
    }

    @Override
    public List<ZoningAreas> getCounty(String city) {
        return cmccDaCodeMapper.getCounty(city);
    }

    @Override
    public List<KuaidialAreas> getKuaidialProvince() {
        return cmccDaCodeMapper.getKuaidialProvince();
    }

    @Override
    public List<KuaidialAreas> getKuaidialCity(String kuaidialProvince) {
        return cmccDaCodeMapper.getKuaidialCity(kuaidialProvince);
    }

    @Override
    public List<ZoningAreas> getZoningProvinceList() {
        return cmccDaCodeMapper.getZoningProvinceList();
    }

    @Override
    public List<ZoningAreas> getZoningCityList() {
        return cmccDaCodeMapper.getZoningCityList();
    }

    @Override
    public List<ZoningAreas> getZoningCountyList() {
        return cmccDaCodeMapper.getZoningCountyList();
    }

    @Override
    public List<KuaidialAreas> getKuaidialCityList() {
        return cmccDaCodeMapper.getKuaidialCityList();
    }

    @Override
    public List<KuaidialAreas> getKuaidialProvinceList() {
        return cmccDaCodeMapper.getKuaidialProvinceList();
    }

    @Override
    public KuaidialAreasJoin getKuaidialProvinceByName(String s) {
        return cmccDaCodeMapper.getKuaidialProvinceByName(s);
    }

    @Override
    public KuaidialAreasJoin getKuaidialCityByName(KuaidialAreasJoin kuaidialProvinceAreas, String cityName) {
        return   cmccDaCodeMapper.getKuaidialCityByName(kuaidialProvinceAreas,cityName);
    }


}
